package com.csx.saas.platform.init.dto;

import com.csx.basic.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 企业版本与服务关系
 * </p>
 *
 * @author ChenSongXin
 * @since 2021-02-24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "InitVersionServiceUpdateDTO", description = "套餐版本与服务关系")
public class InitVersionServiceUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 服务编号
     */
    @ApiModelProperty(value = "服务编号")
    @Length(max = 20, message = "服务编号长度不能超过20")
    private String serviceNbr;
    /**
     * 版本编号
     */
    @ApiModelProperty(value = "版本编号")
    @Length(max = 20, message = "版本编号长度不能超过20")
    private String versionNbr;
}
